// @ts-ignore
/* eslint-disable */
import { api } from "@/utils/api";

/** 新增经营-到货管理表数据 POST /manageArrive/add */
export async function manageArriveAdd(
  body: BIZAPI.ManageArriveCreateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function manageArriveAdd(
  body: BIZAPI.ManageArriveCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function manageArriveAdd(
  body: BIZAPI.ManageArriveCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function manageArriveAdd(
  body: BIZAPI.ManageArriveCreateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/manageArrive/add`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/manageArrive/add`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 验收 POST /manageArrive/check */
export async function manageArriveCheck(
  body: BIZAPI.ManageArriveEntity,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultObject>;

export async function manageArriveCheck(
  body: BIZAPI.ManageArriveEntity,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultObject>>;

export async function manageArriveCheck(
  body: BIZAPI.ManageArriveEntity,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultObject>;

export async function manageArriveCheck(
  body: BIZAPI.ManageArriveEntity,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultObject>(`/app/manageArrive/check`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResultObject>(`/app/manageArrive/check`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 删除经营-到货管理表数据 POST /manageArrive/delete */
export async function manageArriveDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function manageArriveDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function manageArriveDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function manageArriveDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/manageArrive/delete`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/manageArrive/delete`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取经营-到货管理表数据 POST /manageArrive/get */
export async function manageArriveGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultManageArriveEntity>;

export async function manageArriveGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultManageArriveEntity>>;

export async function manageArriveGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultManageArriveEntity>;

export async function manageArriveGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultManageArriveEntity>(`/app/manageArrive/get`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResultManageArriveEntity>(`/app/manageArrive/get`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取经营-到货管理表VO数据 POST /manageArrive/getVo */
export async function manageArriveGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultManageArriveResp>;

export async function manageArriveGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultManageArriveResp>>;

export async function manageArriveGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultManageArriveResp>;

export async function manageArriveGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultManageArriveResp>(`/app/manageArrive/getVo`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResultManageArriveResp>(`/app/manageArrive/getVo`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取经营-到货管理表分页数据 POST /manageArrive/page */
export async function manageArrivePage(
  body: BIZAPI.ManageArriveQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageManageArriveEntity>;

export async function manageArrivePage(
  body: BIZAPI.ManageArriveQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageManageArriveEntity>>;

export async function manageArrivePage(
  body: BIZAPI.ManageArriveQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageManageArriveEntity>;

export async function manageArrivePage(
  body: BIZAPI.ManageArriveQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageManageArriveEntity>(
      `/app/manageArrive/page`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageManageArriveEntity>(`/app/manageArrive/page`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 更新经营-到货管理表数据 POST /manageArrive/update */
export async function manageArriveUpdate(
  body: BIZAPI.ManageArriveUpdateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function manageArriveUpdate(
  body: BIZAPI.ManageArriveUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function manageArriveUpdate(
  body: BIZAPI.ManageArriveUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function manageArriveUpdate(
  body: BIZAPI.ManageArriveUpdateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/manageArrive/update`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/manageArrive/update`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取经营-到货管理表VO分页数据 POST /manageArrive/voPage */
export async function manageArriveVoPage(
  body: BIZAPI.ManageArriveQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageManageArriveResp>;

export async function manageArriveVoPage(
  body: BIZAPI.ManageArriveQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageManageArriveResp>>;

export async function manageArriveVoPage(
  body: BIZAPI.ManageArriveQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageManageArriveResp>;

export async function manageArriveVoPage(
  body: BIZAPI.ManageArriveQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageManageArriveResp>(
      `/app/manageArrive/voPage`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageManageArriveResp>(`/app/manageArrive/voPage`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}
